.query-builder {
    position: relative;

    .qb-group {
        margin: 0;
        padding: 0;

        .qb-item {
            list-style: none;
            position: relative;

            &:not(:last-child) {
                margin-bottom: .5rem;
            }

            > .qb-group {
                border: 1px solid #ddd;
                border-radius: var(--bs-border-radius);
                padding: .5rem;
                padding-left: 2.5rem;

                > .qb-item:last-child:before {
                    content: attr(data-bb-logic);
                    position: absolute;
                    top: 0;
                    left: -2rem;
                    bottom: 0;
                    display: flex;
                    align-items: center;
                }
            }
        }

        .qb-row {
            display: flex;

            > *:not(:last-child) {
                margin-right: .5rem;
            }

            > input.form-control {
                flex: 1;
            }
        }
    }

    .dropdown-toggle:after {
        content: none;
    }
}
